package server;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {


    @Autowired
    private FeignClient1 feignClient1;

    @Autowired
    private FeignClient2 feignClient2;

    @RequestMapping(value = "/hello", method = RequestMethod.GET)
    public String hello()
    {
        String feignClient1Hello = feignClient1.hello();
        String feignClient2Hello = feignClient2.hello();

        return feignClient1Hello + "<br>" + feignClient2Hello + "<br>" + " hello feign server";
    }
}
